package com.newyear.FitnessEquipmentManager.service;

import com.newyear.FitnessEquipmentManager.entity.FitnessEquipment;

import java.util.List;

/**
 * @author 吴阳基
 * @datetime 2023/11/11 14:23
 */
public interface FitnessEquipmentService {

    /**
     * 查询所有健身器材信息
     * @return
     */
    List<FitnessEquipment> list();

    /**
     * 将新的健身器材信息保持到数据库中
     * @param fitnessEquipment
     * @return
     */
    int add(FitnessEquipment fitnessEquipment);

    /**
     * 将指定健身器材从数据库中删除
     * @param id
     * @return
     */
    int delete(int id);
}
